import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppRoutingModule } from './app-routing.module';

import { AppComponent } from './app.component';
import { NgZorroAntdModule, NZ_I18N, zh_CN } from 'ng-zorro-antd';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { registerLocaleData } from '@angular/common';
import zh from '@angular/common/locales/zh';
import { MainpageComponent } from './main/mainpage/mainpage.component';
import { SearchpageComponent } from './main/searchpage/searchpage.component';
import { MessageComponent } from './showmessage/message/message.component';
import { IdealmessageComponent } from './showmessage/idealmessage/idealmessage.component';
import { SuitablemessageComponent } from './showmessage/suitablemessage/suitablemessage.component';
import { ThebestmessageComponent } from './showmessage/thebestmessage/thebestmessage.component';
import { ShowmessageComponent } from './showmessage/showmessage.component';
import { ErrorpageComponent } from './errorpage/errorpage.component';
import { ScrollComponent } from './scroll/scroll.component';
import { LoginComponent } from './login/login.component';
import { RegisterComponent } from './register/register.component';

registerLocaleData(zh);

@NgModule({
  declarations: [
    AppComponent,
    MainpageComponent,
    SearchpageComponent,
    MessageComponent,
    IdealmessageComponent,
    SuitablemessageComponent,
    ThebestmessageComponent,
    ShowmessageComponent,
    ErrorpageComponent,
    ScrollComponent,
    LoginComponent,
    RegisterComponent
  ],
  imports: [

    BrowserModule,
    AppRoutingModule,
    NgZorroAntdModule,
    FormsModule,
    ReactiveFormsModule,
    HttpClientModule,
    BrowserAnimationsModule
  ],
  providers: [{ provide: NZ_I18N, useValue: zh_CN, }],
  bootstrap: [AppComponent]
})
export class AppModule { }
